DevForce Help Reference
ConstructGenericInstance(Type,Type[],Object[]) Method


Constructs a generic instance. Can only access public constructors.
Syntax
'Declaration
 
Public Overloads Shared Function ConstructGenericInstance( _
   ByVal genericType As Type, _
   ByVal argTypes() As Type, _
   ByVal ParamArray constructorParams() As Object _
) As Object
'Usage
 
Dim genericType As Type
Dim argTypes() As Type
Dim constructorParams() As Object
Dim value As Object
 
value = TypeFns.ConstructGenericInstance(genericType, argTypes, constructorParams)
public static object ConstructGenericInstance( 
   Type genericType,
   Type[] argTypes,
   params object[] constructorParams
)

Parameters

genericType
argTypes
constructorParams
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TypeFns Class
TypeFns Members
Overload List

Send Feedback